.class Lcom/android/inputmethod/latin/VlingoVoiceManager$1;
.super Ljava/lang/Object;
.source "VlingoVoiceManager.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/android/inputmethod/latin/VlingoVoiceManager;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/android/inputmethod/latin/VlingoVoiceManager;


# direct methods
.method constructor <init>(Lcom/android/inputmethod/latin/VlingoVoiceManager;)V
    .locals 0
    .parameter

    .prologue
    .line 52
    iput-object p1, p0, Lcom/android/inputmethod/latin/VlingoVoiceManager$1;->this$0:Lcom/android/inputmethod/latin/VlingoVoiceManager;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 4
    .parameter "v"

    .prologue
    const/4 v3, 0x0

    .line 53
    iget-object v1, p0, Lcom/android/inputmethod/latin/VlingoVoiceManager$1;->this$0:Lcom/android/inputmethod/latin/VlingoVoiceManager;

    iget-boolean v1, v1, Lcom/android/inputmethod/latin/VlingoVoiceManager;->mIsListening:Z

    if-eqz v1, :cond_0

    .line 55
    :try_start_0
    iget-object v1, p0, Lcom/android/inputmethod/latin/VlingoVoiceManager$1;->this$0:Lcom/android/inputmethod/latin/VlingoVoiceManager;

    iget-object v1, v1, Lcom/android/inputmethod/latin/VlingoVoiceManager;->mService:Lcom/vlingo/client/asr/service/IVLRecognitionService;

    invoke-interface {v1}, Lcom/vlingo/client/asr/service/IVLRecognitionService;->stopListening()V

    .line 56
    iget-object v1, p0, Lcom/android/inputmethod/latin/VlingoVoiceManager$1;->this$0:Lcom/android/inputmethod/latin/VlingoVoiceManager;

    invoke-static {v1}, Lcom/android/inputmethod/latin/VlingoVoiceManager;->access$000(Lcom/android/inputmethod/latin/VlingoVoiceManager;)V

    .line 57
    iget-object v1, p0, Lcom/android/inputmethod/latin/VlingoVoiceManager$1;->this$0:Lcom/android/inputmethod/latin/VlingoVoiceManager;

    const/4 v2, 0x0

    iput-boolean v2, v1, Lcom/android/inputmethod/latin/VlingoVoiceManager;->mIsListening:Z
    :try_end_0
    .catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0

    .line 66
    :goto_0
    return-void

    .line 59
    :catch_0
    move-exception v1

    move-object v0, v1

    .line 60
    .local v0, ex:Landroid/os/RemoteException;
    iget-object v1, p0, Lcom/android/inputmethod/latin/VlingoVoiceManager$1;->this$0:Lcom/android/inputmethod/latin/VlingoVoiceManager;

    iput-boolean v3, v1, Lcom/android/inputmethod/latin/VlingoVoiceManager;->mIsListening:Z

    .line 61
    iget-object v1, p0, Lcom/android/inputmethod/latin/VlingoVoiceManager$1;->this$0:Lcom/android/inputmethod/latin/VlingoVoiceManager;

    invoke-virtual {v1}, Lcom/android/inputmethod/latin/VlingoVoiceManager;->onCancel()V

    goto :goto_0

    .line 64
    .end local v0           #ex:Landroid/os/RemoteException;
    :cond_0
    iget-object v1, p0, Lcom/android/inputmethod/latin/VlingoVoiceManager$1;->this$0:Lcom/android/inputmethod/latin/VlingoVoiceManager;

    invoke-virtual {v1}, Lcom/android/inputmethod/latin/VlingoVoiceManager;->onCancel()V

    goto :goto_0
.end method
